//
// Continue.cpp for  in /home/gomes_m//svn/google/ticket-pour-gdl/menu_V1
// 
// Made by mickael gomes
// Login   <gomes_m@epitech.net>
// 
// Started on  Wed May 15 10:49:57 2013 mickael gomes
// Last update Thu May 30 11:26:09 2013 mickael gomes
//

#include		"Continue.hh"

Continue::Continue()
{
}

Continue::~Continue()
{
}

void			Continue::resetPos(Vector3f &coord)
{
  coord.posX1_ = 20;
  coord.posY1_ = 270;
  coord.posX2_ = 100;
  coord.posY2_ = 210;
  coord.posZ_ = 0;
  coord.moveX_ = 0;
  coord.moveY_ = 0;
  coord.moveXValue_ = 100;
  coord.moveYValue_ = 120;
  coord.limitXValue_ = 400;
  coord.limitYValue_ = -360;
}

void			Continue::initialize(void)
{
  image_.initialize("images/continue.png", -900, 660, 930, -630, -1);
  image_.initVertex();
}

void			Continue::update(Key key, Cursor &cursor)
{
  if (key == UP || key == DOWN || key == B || key == LEFT || key == RIGHT)
    cursor.update(key);
}

void			Continue::unload()
{
}

void			Continue::draw(void)
{
  image_.draw();
}
